CONFIGURE_FILE(
    "maya-config.hh.in"
    "${CMAKE_CURRENT_BINARY_DIR}/maya-config.hh"
    )

ADD_DEFINITIONS(-D_BOOL -DLINUX -DREQUIRE_IOSTREAM)
IF(UNIX)
    ADD_DEFINITIONS(-DLINUX -Wno-deprecated -fno-gnu-keywords -pthread)
ENDIF()

INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}
                    ${MAYA_INCLUDE_DIR}
                    ${CARINA_COMMON_INCLUDE_DIRS}
                    ${CMAKE_CURRENT_BINARY_DIR})

SET(MAYA_CES_TRANSLATOR_LIB_SRC
    ces-exporter.hh
    ces-exporter.cc
    )

SET(MAYA_CES_PLUGIN_SRC
    ces-plugin.cc
    )

SET(MAYA_TO_CES_SRC
    ces-standalone.cc
    )
    
ADD_LIBRARY(maya_ces_translator STATIC ${MAYA_CES_TRANSLATOR_LIB_SRC})
TARGET_LINK_LIBRARIES(maya_ces_translator carina_common ${MAYA_LIBRARIES})

ADD_LIBRARY(maya_ces_plugin MODULE ${MAYA_CES_PLUGIN_SRC})
TARGET_LINK_LIBRARIES(maya_ces_plugin maya_ces_translator)

ADD_EXECUTABLE(maya_to_ces ${MAYA_TO_CES_SRC})
TARGET_LINK_LIBRARIES(maya_to_ces maya_ces_translator)